package com.koron.ticket.feign;

import com.koron.bean.base.Response;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import com.koron.ticket.feign.bean.PriorBean;
import com.koron.ticket.feign.bean.PriorQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author: rocky
 * @Date: 2022/1/14 16:03
 */
@FeignClient(value = "eam-service-configure", fallbackFactory = FeignFallbackFactory.class)
public interface ConfigureFeign {

    /**
     * 获取人员优先级
     * @param dto
     * @return
     */
    @PostMapping(value = "/prior/queryListNoPage")
    Response<List<PriorBean>> queryEquipmentDefectNums(@RequestBody PriorQuery dto);

}
